package com.example.medicalrecord.AggregationModule.medicine.mapper;

import com.example.medicalrecord.AggregationModule.medicine.pojo.dto.MedicineQuery;
import com.example.medicalrecord.AggregationModule.medicine.pojo.entity.Medicine;
import com.example.medicalrecord.AggregationModule.medicine.pojo.vo.MedicineVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MedicineMapper {
    List<MedicineVO> selectMedicine(MedicineQuery medicineQuery);

    void insert(Medicine medicine);

    void update(Medicine medicine);

    void delete(Long medicineId);

    Integer selectMedicineCount(MedicineQuery medicineQuery);
}
